def add(value1, value2):
    global result  #全局变量就是如此声明的
    result = value1 + value2

add(2,4)
print(result)

print("多个return值的测试")
def profile():
    name = "Danny"
    age = 30
    return (name, age)

profile_data = profile()
print(profile_data[0])
print(profile_data[1])

def profile():
    name = "Danny"
    age = 30
    return name,age
